from sqlalchemy import Column, Integer, String, BigInteger
from app.database import Base


class Admin(Base):
    __tablename__ = "admin"

    id = Column(BigInteger, primary_key=True, index=True, autoincrement=True)
    avatar = Column(String(255))
    display_name = Column(String(255), nullable=False)
    password = Column(String(255), nullable=False)
    permission = Column(Integer, nullable=False)
    username = Column(String(255), unique=True, nullable=False)
